package com.zzg.easypoi.entity;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotNull;
import cn.afterturn.easypoi.excel.annotation.Excel;

public class Member implements Serializable {
	/**   
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)   
	 */   
	private static final long serialVersionUID = 1L;
	
	@Excel(name = "姓名",orderNum="1")
	@NotNull(message="姓名不能为空")
	private String name;
	@Excel(name = "身份证",orderNum="2")
	private String idCard;
	@Excel(name = "入党时间",orderNum="3", format="yyyy-MM-dd")
	private Date joinPartyTime;
	@Excel(name = "党支部",orderNum="4")
	private String partyBranch;
	@Excel(name = "状态",orderNum="5", replace={"在职_1","离职_2"}, isImportField="true")
	private String state;
	
	//set 和 get 方法
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public Date getJoinPartyTime() {
		return joinPartyTime;
	}
	public void setJoinPartyTime(Date joinPartyTime) {
		this.joinPartyTime = joinPartyTime;
	}
	public String getPartyBranch() {
		return partyBranch;
	}
	public void setPartyBranch(String partyBranch) {
		this.partyBranch = partyBranch;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	
	// 构造函数
	public Member(String name, String idCard, Date joinPartyTime, String partyBranch, String state) {
		super();
		this.name = name;
		this.idCard = idCard;
		this.joinPartyTime = joinPartyTime;
		this.partyBranch = partyBranch;
		this.state = state;
	}
	
	public Member(){
		super();
	}
	
	
}
